Skip to main content
Version: Upcoming

TradeCubeDetailV5

V8 Message Definiton

TradeCubeDetail records are published by CoreRiskServers and are visible in SRSE throughout the day. They are designed to be aggregated and analyzed over time. TradeCubeDetail records are published to the SpiderRock Archive Host data pipeline after all markup detail is complete.

METADATA

AttributeValue
Topic4740-risk-v5
MLink TokenClientRisk
ProductSRRisk
accessTypeSELECT
MLink EndpointMLink-Order

Table Definition

FieldTypeKeyDefault ValueComment
fillNumberBIGINTPRI0SpiderRock execution number globally unique over trailing 10 days
tradeDateDATEPRI'1900-01-01'trade date
runStatusenum - RunStatus'None'
sysEnvironmentenum - SysEnvironment'None'
versionTINYINT UNSIGNED0record version number starts at zero and goes up every time an execution record is republished eg bust 1m marks 10m marks etc
clOrdIdVARCHAR(24)''clOrdId resulting in fill child order
parentNumberCHAR(19)'0000-0000-0000-0000'SpiderRock parent number
packageIdBIGINT0groups related orderbrokers together eg Legger wMLeg Parent
altOrderIdVARCHAR(24)''alternate order ID usually clOrdId from client
srcRoutingCodeTINYTEXT''inbound FIX routing code if any
spdrSourceenum - SpdrSource'None'SpiderRock parent order source code broker pkey
groupingCodeCHAR(19)'0000-0000-0000-0000'SpiderRock parent broker number broker pkey
accntVARCHAR(16)''SpiderRock Accnt Code
clientFirmVARCHAR(16)''SpiderRock ClientFirm Code
priAggGroupVARCHAR(16)''primary aggregation group
secAggGroupVARCHAR(16)''secondary aggregation group
secKey_atenum - AssetType'None'security key
secKey_tsenum - TickerSrc'None'security key
secKey_tkVARCHAR(12)''security key
secKey_yrSMALLINT UNSIGNED0security key
secKey_mnTINYINT UNSIGNED0security key
secKey_dyTINYINT UNSIGNED0security key
secKey_xxDOUBLE0security key
secKey_cpenum - CallPut'Call'security key
secTypeenum - SpdrKeyType'None'security type Stock Future Option
ticker_atenum - AssetType'None'base ticker
ticker_tsenum - TickerSrc'None'base ticker
ticker_tkVARCHAR(12)''base ticker
viewGroup1VARCHAR(12)''viewGroup1 user supplied if any
viewGroup2VARCHAR(12)''viewGroup2 user supplied if any
viewGroup3VARCHAR(12)''viewGroup3 user supplied if any
riskClassVARCHAR(8)''user supplied risk class code from SymbolControl record
symbolTypeenum - SymbolType'None'symbol type
sectorVARCHAR(16)''user supplied sector code from SymbolControl record
indNumINT0ind num 00
subNumINT0sub num 0000
grpNumINT0grp num 000000
nbrNumINT0nbr num 00000000
edaysSMALLINT0days to next earnings 5 60
expCodeenum - ExpCode'None'expiration tenor code
skewCodeenum - SkewCode'None'strike skew code
widthCodeenum - WidthCode'None'market width code
priceFormatenum - PriceFormat'None'SpiderRock price display format code
uPriceFormatenum - PriceFormat'None'SpiderRock underlier price display code
yearsFLOAT0years to expiration
underliersPerCnDOUBLE0underliers per contract futures and options
underlierTypeenum - UnderlierType'None'underlier type affects greek calcs
tickValueFLOAT0NLV value of a single tick change in display premium pointValue tickValue tickSize
pointValueFLOAT0NLV value of a point
pointCurrencyenum - Currency'None'
uPrcRatioFLOAT0UPrcRatio SymbolRatio from product definition
minTickSizeFLOAT0
routingCodeTINYTEXT''SpiderRock market routing code
origExecIDVARCHAR(20)''original execution ID string child order
lastExecIDVARCHAR(20)''most recent execution ID same as origExecID unless CANCELCORRECTION has been processed
transactDttmDATETIME(6)'1900-01-01 00:00:00.000000'transaction datetime as reported by exchange or down stream broker
execStatusenum - ExecStatus'None'SpiderRock execution status FillBustCorrectRejectSysRej
remoteTextVARCHAR(64)''text comment from endpoint if any
orderLimitTypeenum - SpdrLimitType'None'parent order limit type Vol VolX PrcDe PrcDeX etc
orderLimitClassenum - SpdrLimitClass'Simple'parent order limit class makeLimitClass if fill was from making takeLimitClass if fill was from taking
parentShapeenum - SpdrOrderShape'None'
parentOrderHandlingenum - ParentOrderHandling'None'base parent order algo take style algo
parentBalanceHandlingenum - ParentBalanceHandling'None'base parent order balance handling make style algo
parentOrderSizeINT0parent order size
methodVARCHAR(16)''execution method string
strategyVARCHAR(36)''client strategy usually client supplied
userNameVARCHAR(24)''SpiderRock user name associated with the parent order
originVARCHAR(16)''parent order origin string
sourceVARCHAR(16)''execution source string
serverVARCHAR(20)''SpiderRock execution engine that handled the parent order
clearingFirmVARCHAR(8)''clearing firm delivery
clearingAccntVARCHAR(16)''clearing firm account if any
lastCapacityenum - OrderCapacity'None'child order capacity
execRoleenum - ExecRole'None'SpiderRock relationship to this execution record Direct Drop etc
execBrkrCodeVARCHAR(16)''SR exec broker acronym
execBrkrAccntVARCHAR(16)''account at executing brokerprime if any
execBrkrClFirmVARCHAR(16)''clientfirm at executing brokerprime if any
execBrkrUserNameVARCHAR(16)''
clearingFlipTypeenum - FlipType'None'clearingFlip Type CMTA or Giveup
clearingFlipFirmVARCHAR(6)''clearingFlip BrokerMPIDCMTA
clearingFlipAccntVARCHAR(10)''clearingFlip additional detail subaccnt
riskGroupIdCHAR(19)'0000-0000-0000-0000'riskGroupId parent order group ID for this execution report
fillBrkrRateFLOAT0billing brokerage rate tier 1
fillRoutingRateFLOAT0billing routing rate tier 1
billingSecTypeenum - BillingSecType'None'SpiderRock billing security type
billingCategoryenum - BillingCategory'None'SpiderRock billing category
firmTypeenum - FirmType'None'chld order firm type Customer ProCust Firm MM etc
sideenum - BuySell'None'parentchild order side
priceTypeenum - PriceType'None'order limit price type
ssaleFlagenum - ShortSaleFlag'None'child order short sale flag
spdrSSaleFlagenum - ShortSaleFlag'None'parent order short sale flag
positionTypeenum - PositionType'None'child order position type
autoHedgeenum - AutoHedge'None'SpiderRock autohedge algorithm if any
orderDttmDATETIME(6)'1900-01-01 00:00:00.000000'Datetime of parent order arrival
orderUBidDOUBLE0underlier market bid parent order arrival
orderUAskDOUBLE0underlier market ask parent order arrival
orderBidDOUBLE0option market bid parent order arrival options only
orderAskDOUBLE0option market ask parent order arrival options only
orderSurfPrcFLOAT0SpiderRock surface price parent order arrival options only
orderSurfVolFLOAT0
orderLimitVolFLOAT0parent order limit volatilty options only
orderLimitPrcDOUBLE0parent order limit price parent order arrival
orderLimitRefUPrcDOUBLE0limit reference underlier price parent order arrival options only
childShapeenum - SpdrOrderShape'None'
childSizeINT0child order size
childPriceDOUBLE0child order price
childExchVARCHAR(6)''child order exchange code SpiderRock
childExDestVARCHAR(16)''child order exchange code downstream
childDttmDATETIME(6)'1900-01-01 00:00:00.000000'child order send datetime
childUBidDOUBLE0underlier market bid child order send time
childUAskDOUBLE0underlier market bid child order send time
childBidDOUBLE0option market bid child order send time options only
childAskDOUBLE0option market ask child order send time options only
childSurfPrcFLOAT0SpiderRock surface price child order send time options only
childVolFLOAT0child order volatilty options only
childProbFLOAT0child order probability Tx
childLimitPrcDOUBLE0parent order limit price child order send time
childLimitRefUPrcDOUBLE0limit reference underlier price child order send time options only
childLimitPnlFLOAT0child limit improvement pnl childLimitPrc to fillPrice
childAlgoHandlerenum - ChildHandler'None'algo that generated the child order responsible for this fill
childOrderHandlingVARCHAR(24)''algo that generated the child order responsible for this fill
childCreateReasonenum - ChildCreateReason'None'child order create reason code
childCancelReasonenum - ChildCancelReason'None'child order cancel reason code
childMktStanceenum - MktStance'None'child order was expected to be marketable child send time
childCxlAttemptedenum - YesNo'None'cancel attempt was made on the child order prior to receiving this fill
childCxlFillLatencyFLOAT0cancel latency for fills with a cancel attempt
fillExchVARCHAR(12)''ExDest code from child order execution report lastMkt
fillPriceDOUBLE0fill price
fillTsDOUBLE0fill report ts seconds since startup 100 nanosec resolution
fillDttmDATETIME(6)'1900-01-01 00:00:00.000000'Datetime of fill arrival
fillSizeINT0fill quantity
effFillSizeINT0fill size x underliers per contract
fillVolFLOAT0fill volatilty options only
fillProbFLOAT0fill order probability Tx
fillLimitPrcDOUBLE0parent order limit price fill arrival time
fillLimitRefUPrcDOUBLE0limit reference underlier price fill arrival time options only
fillLimitPnlFLOAT0fill limit improvement pnl fillLimitPrc to fillPrice
fillDeFLOAT0fill delta
fillVeFLOAT0fill vega
fillThFLOAT0fill theta
fillUPrcDOUBLE0fill underlier midmarket
fillBetaFLOAT0SpiderRock estimate of beta to SPX
fillTvFLOAT0theo vol user supplied
fillTpFLOAT0theo price
fillUBidDOUBLE0underlier market bid fill arrival
fillUAskDOUBLE0underlier market ask fill arrival
fillBidDOUBLE0option market bid fill arrival
fillAskDOUBLE0option market ask fill arrival
fillSurfPrcFLOAT0SpiderRock surface price fill arrival
fillPostUMark1MDOUBLE0underlier mark fill arrival 1M
fillPostUMark10MDOUBLE0underlier mark fill arrival 10M
fillPostMark1MDOUBLE0SpiderRock mid or surface mark fill arrival 1M
fillPostMark10MDOUBLE0SpiderRock mid or surface mark fill arrival 10M
fillRiskMetric1FLOAT0user defined from parent order
fillRiskMetric2FLOAT0user defined from parent order
fillRiskMetric3FLOAT0user defined from parent order
fillRiskMetric4FLOAT0user defined from parent order
fillRiskMetric5FLOAT0user defined from parent order
fillRiskMetric6FLOAT0user defined from parent order
fillRiskMetric7FLOAT0user defined from parent order
fillS15DnFLOAT0underlier down 15 shock slide
fillS15UpFLOAT0underlier up 15 shock slide
marginUDnVDnFLOAT0Aggregate RiskSlide uPrc dn vol dn
marginUDnVUpFLOAT0Aggregate RiskSlide uPrc dn vol up
marginUUpVDnFLOAT0Aggregate RiskSlide uPrc up vol dn
marginUUpVUpFLOAT0Aggregate RiskSlide uPrc up vol up
riskCodeenum - RiskCode'None'SpiderRock Risk Code if any
exchLiquidityTagVARCHAR(4)''liquidity tag exchange
spdrLiquidityTagVARCHAR(2)''SpiderRock normalized liquidity tag
fillExchDetailTINYTEXT''other fix tags tagvaluetagvalue additional detail used for analysis
notionalValueFLOAT0cn mult uPrc
marketValueFLOAT0cn mult fillPrice
orderMktWidthFLOAT0market width parent order arrival
childMktWidthFLOAT0market width child order send time
fillMktWidthFLOAT0market width fill arrival
parentOrderAgeFLOAT0elaspsed time from parent order entryupdate to this fill event
parentAgeCodeenum - ParentAge'None'elaspsed time from parent order entryupdate to this fill event coded
trdDeltaFLOAT0trade delta
trdDDeltaFLOAT0trade delta
trdGammaFLOAT0trade gamma
trdVegaFLOAT0trade vega
trdWtVegaFLOAT0trade wtVega vega vol sqrtmax01 years 4
trdThetaFLOAT0trade theta
trdPremFLOAT0trade premium over parity
trdBetaFLOAT0trade beta
trdDBetaFLOAT0trade beta
surfEdgeFLOAT0SR surface edge user supplied theo volprc to SpiderRock surface price
surfEdgeUnitFLOAT0SR surface edge normalized to 100 underlier
theoEdgeFLOAT0theo edge user supplied theo volprc to SpiderRock surface price
theoEdgeUnitFLOAT0theo edge normalized to 100 underlier
exchFeeFLOAT0SpiderRock exchange fee estimate
halfWidthPnlFLOAT0estimated halfwidth Pnl
clArrivePnlFLOAT0dir qty fillPrice clArriveMark maybe use orderSurfPrc instead
arrivePnlFLOAT0dir qty fillPrice 05 orderBid orderAsk maybe use orderSurfPrc instead
arriveDnPnlFLOAT0arrivePnl uDriftArrivePnl
uDriftArrivePnlFLOAT0dir qty fillDe 05 fillUBid fillUAsk 05 orderUBid orderUAsk
dayDnPnlFLOAT0delta neutral Pnl to EOD
dayM1PnlFLOAT0delta neutral Pnl Fill 1M
dayM10PnlFLOAT0delta neutral Pnl Fill 10M
uDriftDayPnlFLOAT0underlier delta drift Pnl to EOD
uDriftM1PnlFLOAT0underlier delta drift Pnl Fill 1M
uDriftM10PnlFLOAT0underlier delta drift Pnl Fill 10M
dayPnlFLOAT0actual Pnl to EOD
liveMarkDOUBLE0SpiderRock internal use
liveUPrcDOUBLE0SpiderRock internal use
pendMarkDOUBLE0SpiderRock internal use
pendUPrcDOUBLE0SpiderRock internal use
trdMarkErrorVARCHAR(8)''trade mark error code
dayMarkErrorVARCHAR(8)''day mark error code
userData1TINYTEXT''client supplied data field passes through to parent and child executions and reports as well as FIX drops
userData2TINYTEXT''client supplied data field passes through to parent and child executions and reports as well as FIX drops
timestampDATETIME(6)'1900-01-01 00:00:00.000000'SR system timestamp

PRIMARY KEY DEFINITION (Unique)

FieldSequence
fillNumber1
tradeDate2

SELECT TABLE EXAMPLE QUERY

SELECT *
FROM `SRRisk`.`MsgTradeCubeDetailV5`
WHERE
/* Replace with a BIGINT */
`fillNumber` = 1234567890
AND
/* Replace with a DATE */
`tradeDate` = '2022-01-01';

Doc Columns Query

SELECT * FROM SRRisk.doccolumns WHERE TABLE_NAME='TradeCubeDetailV5' ORDER BY ordinal_position ASC;